<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 烽
  Date: 2015/7/15
  Time: 22:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>${title}</title>
    <meta charset="utf-8">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css">


    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
<div id="all" class="col-md-12">


    <jsp:include page="/WEB-INF/views/common/head.jsp"/>

    <jsp:include page="/WEB-INF/views/common/menu.jsp"/>

    <div id="top-blog" class="col-md-10 col-md-offset-1">
        <table class="table table-striped">
            <c:forEach items="${articles}" var="a">
                <tr>
                    <td>
                        <h2><a href="<%=request.getContextPath()%>/blog/blog?id=${a.id}">${a.title}</a></h2>

                        <p>分类：${a.typeName}&nbsp;&nbsp;&nbsp;${a.formatTime}</p>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <a href="<%=request.getContextPath()%>/blog/allBlog" type="button" class="btn btn-success col-md-offset-10">查看更多</a>
    </div>

    <jsp:include page="/WEB-INF/views/common/foot.jsp"/>
</div>
</body>
</html>

